﻿using System.Collections.Generic;
using Webdiyer.AspNetCore;
using PlatformNetCore.Entity;

namespace PlatformNetCore.IService
{
    public interface IPortalService
    {
        #region 后台首页统计
        AdminInfo GetAdminInfo();
        #endregion

        #region 前台
        /// <summary>
        /// 前台首页
        /// </summary>
        /// <returns></returns>
        HomeInfo GetHomeInfo();
        /// <summary>
        /// 关于我们
        /// </summary>
        /// <returns></returns>
        AboutInfo GetAboutInfo(string menuCode);
        /// <summary>
        /// 配药安全
        /// </summary>
        /// <returns></returns>
        SafetyInfo GetSafetyInfo();
        /// <summary>
        /// 产品中心
        /// </summary>
        /// <returns></returns>
        ProductInfo GetProductInfo(string menuCode);
        /// <summary>
        /// 数据中心
        /// </summary>
        /// <param name="menuCode"></param>
        /// <returns></returns>
        DataCenterInfo GetDataCenterInfo(string menuCode, int pageindex = 1, int pagesize = 4);
        /// <summary>
        /// 招贤纳士
        /// </summary>
        /// <returns></returns>
        JobsInfo GetJobsInfo(string menuCode, string jobID = "", string positionID = "", string search = "", int pageindex = 1, int pagesize = 8);
        /// <summary>
        /// 职位详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        JobsDetail GetJobsDetail(string id);
        /// <summary>
        /// 员工分享
        /// </summary>
        /// <param name="menuCode"></param>
        /// <returns></returns>
        EmployeeInfo GetEmployee(string menuCode, int pageindex = 1, int pagesize = 12);
        /// <summary>
        /// 员工分享详情
        /// </summary>
        /// <param name="menuCode"></param>
        /// <param name="id"></param>
        /// <returns></returns>
        EmployeeDetail GetEmployeeDetail(string id);
        /// <summary>
        /// 客服中心
        /// </summary>
        /// <returns></returns>
        CustomerInfo GetCustomerInfo(string menuCode);
        /// <summary>
        /// 提交留言
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        ResultResponse SubmitComment(Subscribe model);
        ResultResponse SendMail(EmailModel model);
        #endregion
    }
}
